package org.jarraiders.musiclibrary.client;

import java.util.ArrayList;

import org.jarraiders.musiclibrary.shared.domain.AlbumDTO;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("albumsService")
public interface AlbumsService extends RemoteService{

	AlbumDTO addAlbum(AlbumDTO album);

	boolean deleteAlbum(String id);

	AlbumDTO getAlbum(String id);

	ArrayList<AlbumDTO> getAlbumDetails();

	AlbumDTO updateAlbum(AlbumDTO album);
	
	ArrayList<AlbumDTO> searchAlbum(String searchText);

}
